package com.happycat.mobile.model;
 
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
/**
 * Module: UserLoginLog.java
 *
 * @author liaoyong
 * @since JDK 1.8
 * @version 1.0
 * @date 2020-08-07
 * @Descriptions:
 */
@Data
@TableName(value = "user_login_log")
@ApiModel
public class UserLoginLog  {
	
	
	@TableId(value = "id", type = IdType.INPUT)
	private Long id;
	
	@TableField("account_id")
	@ApiModelProperty(value="账号id")
	private Long accountId;
	
	@ApiModelProperty(value="登录时间",example = "2020-01-01T12:18:48")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	
	@TableField("token")
	@ApiModelProperty(value="用户登录token")
	private String token;
	
	@TableField("device")
	@ApiModelProperty(value="登录设备及设备号")
	private String device;
	
	@TableField("login_type")
	@ApiModelProperty(value="登录类型")
	private Integer loginType;
	
	@TableField("login_result")
	@ApiModelProperty(value="登录结果")
	private String loginResult;
	
	@TableField("result_reason")
	@ApiModelProperty(value="登录失败原因")
	private String resultReason;
	
	@TableField("ip")
	@ApiModelProperty(value="IP地址")
	private String ip;
	
	@TableField("address")
	@ApiModelProperty(value="登录地区")
	private String address;
	
	@ApiModelProperty(value="离线时间",example = "2020-01-01T12:18:48")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date offlineTime;
}